/*
Q * main.java
 *
 * Created on __DATE__, __TIME__
 */

package hotel.view;

import java.awt.event.ActionEvent;

import javax.swing.JFrame;
import javax.swing.ImageIcon;
import java.awt.Font;

public class main extends javax.swing.JFrame {

	public main() {
		initComponents();
		this.setLocationRelativeTo(null);
		// 设置最大化
		this.setExtendedState(JFrame.MAXIMIZED_BOTH);
	}



	private void initComponents() {

		table = new javax.swing.JDesktopPane();
		jMenuBar1 = new javax.swing.JMenuBar();
		jMenu1 = new javax.swing.JMenu();
		jMenu1.setFont(new Font("宋体", Font.BOLD, 28));

		jMenu3 = new javax.swing.JMenu();
		jMenu3.setFont(new Font("宋体", Font.PLAIN, 22));

		jMenuItem1 = new javax.swing.JMenuItem();
		jMenuItem1.setFont(new Font("宋体", Font.PLAIN, 22));
		jMenuItem2 = new javax.swing.JMenuItem(); 
		jMenuItem2.setFont(new Font("宋体", Font.PLAIN, 22));
		edit = new javax.swing.JMenuItem();
		edit.setFont(new Font("宋体", Font.PLAIN, 22));
		jMenuItem4 = new javax.swing.JMenuItem();
		jMenuItem4.setFont(new Font("宋体", Font.PLAIN, 22));
		jMenu4 = new javax.swing.JMenu();
		jMenu4.setFont(new Font("宋体", Font.PLAIN, 22));

		add_household = new javax.swing.JMenuItem();
		add_household.setFont(new Font("宋体", Font.PLAIN, 22));
		out = new javax.swing.JMenuItem();
		out.setFont(new Font("宋体", Font.PLAIN, 22));
		jMenu5 = new javax.swing.JMenu();

		jMenu5.setFont(new Font("宋体", Font.PLAIN, 22));
		jMenuItem7 = new javax.swing.JMenuItem();
		jMenuItem7.setFont(new Font("宋体", Font.PLAIN, 22));
		jMenuItem8 = new javax.swing.JMenuItem();
		jMenuItem8.setFont(new Font("宋体", Font.PLAIN, 22));
		jMenu6 = new javax.swing.JMenu();
		jMenu6.setFont(new Font("宋体", Font.PLAIN, 22));

		jMenuItem9 = new javax.swing.JMenuItem();
		jMenuItem9.setFont(new Font("Microsoft YaHei UI", Font.PLAIN, 22));
		outAccountManger = new javax.swing.JMenuItem();
		outAccountManger.setFont(new Font("Microsoft YaHei UI", Font.PLAIN, 22));
		jMenuItem3 = new javax.swing.JMenuItem();
		jMenuItem3.setFont(new Font("宋体", Font.PLAIN, 22));

		jMenu2 = new javax.swing.JMenu();

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

		jMenu1.setText("菜单");

		jMenu3.setText("查询");

		jMenuItem1.setText("查询房间信息");
		jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem1ActionPerformed(evt);
			}
		});
		jMenu3.add(jMenuItem1);

		jMenuItem2.setText("查询房间状态");
		jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem2ActionPerformed(evt);
			}
		});
		jMenu3.add(jMenuItem2);

		edit.setText("查询编辑房间信息");
		edit.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				editActionPerformed(evt);
			}
		});
		jMenu3.add(edit);

		jMenuItem4.setText("添加房间信息");
		jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem4ActionPerformed(evt);
			}
		});
		jMenu3.add(jMenuItem4);

		jMenu1.add(jMenu3);

		jMenu4.setText("入退房管理");

		add_household.setText("入住管理");
		add_household.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				add_householdActionPerformed(evt);
			}
		});
		jMenu4.add(add_household);

		out.setText("退房管理");
		out.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				outActionPerformed(evt);
			}
		});
		jMenu4.add(out);

		jMenu1.add(jMenu4);

		jMenu5.setText("退订房管理");

		jMenuItem7.setText("预订管理");
		jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem7ActionPerformed(evt);
			}
		});
		jMenu5.add(jMenuItem7);

		jMenuItem8.setText("退订管理");
		jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem8ActionPerformed(evt);
			}
		});
		jMenu5.add(jMenuItem8);

		jMenu1.add(jMenu5);

		jMenu6.setText("收银管理");

		jMenuItem9.setText("入账管理");
		jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem9ActionPerformed(evt);
			}
		});
		jMenu6.add(jMenuItem9);

		outAccountManger.setText("出账管理");
		outAccountManger.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mousePressed(java.awt.event.MouseEvent evt) {
				outAccountMangerMousePressed(evt);
			}
		});
		outAccountManger.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				outAccountMangerActionPerformed(evt);
			}
		});
		jMenu6.add(outAccountManger);

		jMenu1.add(jMenu6);

		jMenuItem3.setText("修改信息");
		jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				jMenuItem3ActionPerformed(evt);
			}
		});
		jMenu1.add(jMenuItem3);

		jMenuBar1.add(jMenu1);
		jMenuBar1.add(jMenu2);

		setJMenuBar(jMenuBar1);

		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(table,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 400,
				Short.MAX_VALUE));
		layout.setVerticalGroup(layout.createParallelGroup(
				org.jdesktop.layout.GroupLayout.LEADING).add(table,
				org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 279,
				Short.MAX_VALUE));

		pack();
	}

	private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {
		addGuestRoom addGuestRoom = new addGuestRoom();
		addGuestRoom.setVisible(true);
		this.table.add(addGuestRoom);
	}

	private void outAccountMangerActionPerformed(java.awt.event.ActionEvent evt) {
		outAccountManger outAccountManger = new outAccountManger();
		outAccountManger.setVisible(true);
		this.table.add(outAccountManger);
	}

	private void outAccountMangerMousePressed(java.awt.event.MouseEvent evt) {
		
	}

	private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {
		inAccountManger inAccountManger = new inAccountManger();
		inAccountManger.setVisible(true);
		this.table.add(inAccountManger);
	}

	private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {
		usManger usManger = new usManger();
		usManger.setVisible(true);
		this.table.add(usManger);
	}

	private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {
		BookManger bookManger = new BookManger();
		bookManger.setVisible(true);
		this.table.add(bookManger);
	}

	private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {
		editData editData = new editData();
		editData.setVisible(true);
		editAdmin editadmin = new editAdmin();
		editadmin.setVisible(true);
		this.table.add(editadmin);
	}

	private void editActionPerformed(java.awt.event.ActionEvent evt) {
		queryGuestRoomInfo queryGuestRoomInfo = new queryGuestRoomInfo();
		queryGuestRoomInfo.setVisible(true);
		this.table.add(queryGuestRoomInfo);
	}

	private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {
		queryGuestRoomState queryGuestRoomState = new queryGuestRoomState();
		queryGuestRoomState.setVisible(true);
		this.table.add(queryGuestRoomState);
	}

	private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
		queryTenantInfo queryTenantInfo = new queryTenantInfo();
		queryTenantInfo.setVisible(true);
		this.table.add(queryTenantInfo);
	}

	private void outActionPerformed(java.awt.event.ActionEvent evt) {
		outGuestManger outGuestManger = new outGuestManger();
		outGuestManger.setVisible(true);
		this.table.add(outGuestManger);
	}

	private void add_householdActionPerformed(ActionEvent evt) {
		addHousehold addHousehold = new addHousehold();
		addHousehold.setVisible(true);
		this.table.add(addHousehold);
	}

	
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				new main().setVisible(true);
			}
		});
	}

	
	private javax.swing.JMenuItem add_household;
	private javax.swing.JMenuItem edit;
	private javax.swing.JMenu jMenu1;
	private javax.swing.JMenu jMenu2;
	private javax.swing.JMenu jMenu3;
	private javax.swing.JMenu jMenu4;
	private javax.swing.JMenu jMenu5;
	private javax.swing.JMenu jMenu6;
	private javax.swing.JMenuBar jMenuBar1;
	private javax.swing.JMenuItem jMenuItem1;
	private javax.swing.JMenuItem jMenuItem2;
	private javax.swing.JMenuItem jMenuItem3;
	private javax.swing.JMenuItem jMenuItem4;
	private javax.swing.JMenuItem jMenuItem7;
	private javax.swing.JMenuItem jMenuItem8;
	private javax.swing.JMenuItem jMenuItem9;
	private javax.swing.JMenuItem out;
	private javax.swing.JMenuItem outAccountManger;
	private javax.swing.JDesktopPane table;
	
}